<?php
$youtube=$_GET['url'];

function get_youtube_embed($youtube_video_id, $autoplay=false){
	$embed_code = "";
 
	if($autoplay)
		$embed_code = '<embed src="http://www.youtube.com/v/'.$youtube_video_id.'&rel=1&autoplay=1" pluginspage="http://adobe.com/go/getflashplayer" type="application/x-shockwave-flash" quality="high" width="480" height="395" bgcolor="#ffffff" loop="false"></embed>';
	else
		$embed_code = '<embed src="http://www.youtube.com/v/'.$youtube_video_id.'&rel=1" pluginspage="http://adobe.com/go/getflashplayer" type="application/x-shockwave-flash" quality="high" width="450" height="376" bgcolor="#ffffff" loop="false"></embed>';
	return $embed_code;
}
?>
<body style="background-color: #111111">
    

    <script type="text/javascript">
        window.onresize = function(){
            window.resizeTo(514,480);
        }
        window.onclick = function(){
            window.resizeTo(514,480);
        }
    </script>

<?php
	echo get_youtube_embed($youtube, true);
?>

</body>